package com.iflytek.uoamp.agent.common.constants;



/**
 * 监控平台所有组件的公共常量类
 * 全部的常量，包括用以分割字符串的分隔符等常量全部在该类中进行定义
 * @author Administrator
 *
 */
public class CommonConstants {
	//允许初始化的头
	public static final String ALLOW_PATH = "find/AllowHead";
    //Linux系统下agent配置文件放置目录
    public static final String LINUX_CONF_PATH = "/iflytek/uoamp/config/uoamp-agent/";
    //windows系统下agent配置文件放置目录
    public static final String WIN_CONF_PATH = "conf/";
    //log4j配置文件名称
    public static final String PRO_LOG4J = "log4j.xml";
	//LINUX下log4j配置文件的路径
	public static final String LINUX_LOG4J_PATH = LINUX_CONF_PATH + PRO_LOG4J;
	//WINDOWS下log4j配置文件的路径
	public static final String WIN_LOG4J_PATH = WIN_CONF_PATH + PRO_LOG4J;
    //core模块配置文件名称
    public static final String PRO_CORE = "uoampCore.properties";
    //LINUX下CORE配置文件的路径
    public static final String LINUX_CORE_PATH = LINUX_CONF_PATH + PRO_CORE;
    //WINDOWS下CORE配置文件的路径
    public static final String WIN_CORE_PATH = WIN_CONF_PATH + "core/" + PRO_CORE;
    //monitor模块配置文件名称
    public static final String PRO_MONITOR = "uoampMonitor.properties";
    //LINUX下MONITOR配置文件的路径
    public static final String LINUX_MONITOR_PATH = LINUX_CONF_PATH + PRO_MONITOR;
    //WINDOWS下MONITOR配置文件的路径
    public static final String WIN_MONITOR_PATH = WIN_CONF_PATH + "monitor/" +  PRO_MONITOR;
    //logger模块配置文件名称
    public static final String PRO_LOGGER = "uoampLogger.properties";
    //LINUX下LOGGER配置文件的路径
    public static final String LINUX_LOGGER_PATH = LINUX_CONF_PATH + PRO_LOGGER;
    //WINDOWS下LOGGER配置文件的路径
    public static final String WIN_LOGGER_PATH = WIN_CONF_PATH + "logger/" +  PRO_LOGGER;

    //quartz文件
    public static final String QUARTZ_FILE = "org.quartz.properties";
    //quartz配置文件
    public static final String PRO_QUARTZ = "quartz.properties";
    //LINUX下QUARTZ配置文件的路径
    public static final String LINUX_QUARTZ_PATH = LINUX_CONF_PATH + PRO_QUARTZ;
    //WINDOWS下QUARTZ配置文件的路径
    public static final String WIN_QUARTZ_PATH = WIN_CONF_PATH + "monitor/" +  PRO_QUARTZ;

    public static final String LIBSIGAR_LINUX_64BIT = "libsigar-amd64-linux.so";
    public static final String LIBSIGAR_LINUX_32BIT = "libsigar-x86-linux.so";
    public static final String LIBSIGAR_LINUX_SRCPATH = "/iflytek/uoamp/uoampagent/conf/thirdLibs/";
    //version文件
    public static final String VERSION_PATH = "conf/version";
    //clientIp文件
    public static final String CLIENTIP_PATH = "conf/monitor/clientIp";
    //获取IP脚本路径
    public static final String GETIP_PATH = "cmd/linux/auto/getIFConfig.sh";
    //获取CPU脚本路径
    public static final String GETCPU_PATH = "cmd/linux/auto/getCpuInfo.sh";
    //获取运行时间脚本路径
    public static final String GETRUNTIME_PATH = "cmd/linux/check_runtime.sh";
    //netty断线重连的间隔（单位：s）
    public static final int CONNECT_INTERVAL = 10;
    //失败后获取clientId的间隔（单位：s）
    public static final int CLIENTID_INTERVAL = 20;
    //agent获取版本信息的间隔（单位：m）
    public static final int GETVERSION_INTERVAL = 30;


}
